package com.qys.livesMall.financial.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 线下理财
 * </p>
 *
 * @author
 * @since 2023-06-10
 */
@Getter
@Setter
@TableName("h2_financial_offline")
@Schema(name = "FinancialOffline", description = "线下理财")
public class FinancialOffline implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId(value = "id")
    private Long id;

    @Schema(description = "理财名称")
    private String name;

    @Schema(description = "理财明细")
    private String detail;

    @Schema(description = "状态(0上架,1下架)")
    private Byte status;

    @Schema(description = "周期（多少天后可以重复完成任务）")
    private Integer cycle;

    @Schema(description = "用户等级")
    private Long userLevelId;

    @Schema(description = "用户等级")
    private String userLevel;

    @Schema(description = "余额区间")
    private BigDecimal amountMin;

    @Schema(description = "余额区间")
    private BigDecimal amountMax;

    @Schema(description = "收益")
    private BigDecimal income;

    @Schema(description = "明细数量")
    private Byte detailCount;

    @Schema(description = "喜欢数")
    private Integer likeCount;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "创建人")
    private String creator;

    @Schema(description = "是否删除")
    @TableLogic
    private Byte deleted;

    @Schema(description = "鲜花数")
    private Integer flowerCount;

    @Schema(description = "点赞数")
    private Integer likesCount;
}
